package com.ruoyi.system.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 红包领取记录对象 app_red_packet_get
 *
 * @author ruoyi
 * @date 2024-08-08
 */
public class AppRedPacketGet extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 领取用户id
     */
    @Excel(name = "领取用户id")
    private Long userId;

    /**
     * 红包id
     */
    @Excel(name = "红包id")
    private Long packetId;

    /**
     * 金额
     */
    @Excel(name = "金额")
    private BigDecimal money;

    /**
     * 手气状态，0：普通，1：手气最佳
     */
    @Excel(name = "手气状态，0：普通，1：手气最佳")
    private Integer status;
    @TableField(exist = false)
    @ApiModelProperty("用户名")
    private String userName;

    @TableField(exist = false)
    @ApiModelProperty("头像")
    private String headImg;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setPacketId(Long packetId) {
        this.packetId = packetId;
    }

    public Long getPacketId() {
        return packetId;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("createTime", getCreateTime())
                .append("userId", getUserId())
                .append("packetId", getPacketId())
                .append("money", getMoney())
                .append("status", getStatus())
                .toString();
    }
}
